/*mylib.c*/
#define NULL 0L

int toLowers(int c){
	if ('A' <= c && c <= 'Z') {
		c += 32;
	}
	return c;
}	
int my_strcasecmp(const char *s1, const char *s2){
	char *p1 = ( char *) s1;
	char *p2 = ( char *) s2;
	unsigned char c1,c2;
	do {
		c1 = toLowers(*p1);
		c2 = toLowers(*p2);
		if (c1 == '\0') {
			break;
		}
		++p1;
		++p2;
	} while (c1 == c2);
	return c1 - c2;
}
const char *my_index(const char *s1,int c){
	char *s = (char*) s1;
	for(;(*s);s++){
		if((*s) == c){
			return s;
		}
	}
	return NULL;
}


